package apace.commons.io;

import java.io.File;

import org.apache.commons.io.FileCleaningTracker;
import org.apache.commons.io.FileDeleteStrategy;

public class FileCleaningTrackerTest {

	public static void main(String[] args) {
		FileCleaningTracker fct = new FileCleaningTracker();
		File file = new File("D:" + File.separator + "11.txt");
		Object flag = "TT";
		fct.track(file, flag, FileDeleteStrategy.FORCE);
		flag = null;
		System.gc();
		fct.track(file, flag, FileDeleteStrategy.FORCE);
		if (fct.getTrackCount() <= 0) {
			fct.exitWhenFinished();
		}
		System.out.println("fct:" + fct.getTrackCount());
	}

}
